﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;

namespace Packaging
{
	// Token: 0x02000006 RID: 6
	public static class StringExtend
	{
		// Token: 0x06000024 RID: 36 RVA: 0x00008CC0 File Offset: 0x00006EC0
		public static IEnumerable<int> GetAllIndexes(this string source, string matchString)
		{
			matchString = Regex.Escape(matchString);
			foreach (object obj in Regex.Matches(source, matchString))
			{
				Match match = (Match)obj;
				yield return match.Index;
				match = null;
			}
			IEnumerator enumerator = null;
			yield break;
			yield break;
		}
	}
}
